//
//  UserInfoHeaderView.m
//  JiaoX
//
//  Created by yinqy on 15/4/9.
//  Copyright (c) 2015年 北京娇羞科技有限公司. All rights reserved.
//

#import "UserInfoHeaderView.h"
#import "LeftLineView.h"
@interface UserInfoHeaderView()
{
    UIView *_spliteView;
    LeftLineView *_leftLineView;
    
    NSString *_url;
}

@end
@implementation UserInfoHeaderView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self setWidth:JXScreenW];
        [self setBackgroundColor:[UIColor whiteColor]];
        
        self.userInfoView = [[UserInfoTitleView alloc]init];
        [self addSubview:self.userInfoView];
        
        
        _spliteView = [[UIView alloc]initWithFrame:CGRectMake(0, CGRectGetMaxY(self.userInfoView.frame), JXScreenW, 10)];
        [_spliteView setBackgroundColor:JXColor(238, 238, 238)];
        [self addSubview:_spliteView];
        
        _leftLineView = [[LeftLineView alloc]initWithTitleFontSize:SCALEX(14)];
        [_leftLineView setX:10];
        [_leftLineView setY:CGRectGetMaxY(_spliteView.frame)+15];
        [_leftLineView setText:@"TA的帖子"];
        [self addSubview:_leftLineView];
        
        [self setHeight:CGRectGetMaxY(_leftLineView.frame)];
    }
    return self;
}

@end
